/**
 * TtColLogServiceImpl.java
 * Created at 2016-3-19
 * Created by xieshuang
 * Copyright (C) 2016 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.repository.EntityDao;
import com.broadtext.common.service.impl.EntityServiceImpl;
import com.broadtext.rms.system.model.AccessLog;
import com.broadtext.rms.system.service.ITtColLogService;
import com.broadtext.rms.system.vo.LogExportModel;

/**
 * 
 * <p>
 * ClassName: TtColLogServiceImpl
 * </p>
 * <p>
 * Description: 日志务实现类
 * </p>
 * <p>
 * Author: xieshuang
 * </p>
 * <p>
 * Date: 2016-5-17
 * </p>
 */
@Service("ttColLogService")
public class TtColLogServiceImpl extends EntityServiceImpl<AccessLog> implements ITtColLogService {
    @Autowired
    @Qualifier("accessLogDao")
    public void setEntityDao(EntityDao<AccessLog> entityDao) {
        super.entityDao = entityDao;
    }
    
    
    /**
     * 
     * <p>Description: 获取导出列表</p>
     * @return 结果集
     * @throws DaoException 异常
     */
    @SuppressWarnings("unchecked")
    public List<LogExportModel> findExportLogList() throws DaoException {
        return this.entityDao.findByQuery("com.broadtext.rms.system.model.AccessLog.getExportLogList", null);
    }
    
}
